<?php
require_once("init.php");
$sql = "select * from yahoo where flag = 0 limit 0,$num";
$yahooResult = $db->dbfetchAll($sql);

$sql = "select * from template where flag = 0 and type = 20 order by id asc limit 0,1";
$template = $db->dbGetRow($sql);

$template['content'] ＝ formatContent($template['content']);


$i = -1;
foreach ($yahooResult as $key => $value) {
	$i++;
	$j = $i%3;
	selectSendServer($serverList[$j]);
	getContent($template['title'],$template['content'],$value['address']);
	sends();
}
?>